<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.3"/>
<title>Duye SDK User Wizard: duye::XmlBase Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Duye SDK User Wizard
   &#160;<span id="projectnumber">V1.0.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.3 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li><a href="examples.html"><span>Examples</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>duye</b></li><li class="navelem"><a class="el" href="classduye_1_1_xml_base.html">XmlBase</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pub-static-attribs">Static Public Attributes</a> &#124;
<a href="#pro-static-methods">Static Protected Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a> &#124;
<a href="#pro-static-attribs">Static Protected Attributes</a> &#124;
<a href="#friends">Friends</a> &#124;
<a href="classduye_1_1_xml_base-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">duye::XmlBase Class Reference<span class="mlabels"><span class="mlabel">abstract</span></span></div>  </div>
</div><!--header-->
<div class="contents">

<p><a class="el" href="classduye_1_1_xml_base.html" title="XmlBase is a base class for every class in GnyXml. It does little except to establish that GnyXml cla...">XmlBase</a> is a base class for every class in GnyXml. It does little except to establish that GnyXml classes can be printed and provide some utility functions.  
 <a href="classduye_1_1_xml_base.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="duye__xml_8h_source.html">duye_xml.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for duye::XmlBase:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classduye_1_1_xml_base.png" usemap="#duye::XmlBase_map" alt=""/>
  <map id="duye::XmlBase_map" name="duye::XmlBase_map">
<area href="classduye_1_1_xml_attribute.html" title="An attribute is a name-value pair. Elements have an arbitrary number of attributes, each with a unique name." alt="duye::XmlAttribute" shape="rect" coords="0,56,132,80"/>
<area href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type." alt="duye::XmlNode" shape="rect" coords="355,56,487,80"/>
<area href="classduye_1_1_xml_comment.html" title="An XML comment." alt="duye::XmlComment" shape="rect" coords="0,112,132,136"/>
<area href="classduye_1_1_xml_declaration.html" title="In correct XML the declaration is the first entry in the file." alt="duye::XmlDeclaration" shape="rect" coords="142,112,274,136"/>
<area href="classduye_1_1_xml_document.html" title="Always the top level node. A document binds together all the XML pieces. It can be saved..." alt="duye::XmlDocument" shape="rect" coords="284,112,416,136"/>
<area href="classduye_1_1_xml_element.html" title="The element is a container class. It has a value, the element name, and can contain other elements..." alt="duye::XmlElement" shape="rect" coords="426,112,558,136"/>
<area href="classduye_1_1_xml_text.html" title="XML text. A text node can have 2 ways to output the next. &quot;normal&quot; output and CDATA. It will default to the mode it was parsed from the XML file and you generally want to leave it alone, but you can change the output mode with SetCDATA() and query it with CDATA()." alt="duye::XmlText" shape="rect" coords="568,112,700,136"/>
<area href="classduye_1_1_xml_unknown.html" title="Any tag that tinyXml doesn&#39;t recognize is saved as an unknown. It is a tag of text, but should not be modified. It will be written back to the XML, unchanged, when the file is saved." alt="duye::XmlUnknown" shape="rect" coords="710,112,842,136"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a6bef797037763b213c6e429c12d97f6d"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom">{ <br/>
&#160;&#160;<b>XML_NO_ERROR</b> = 0, 
<b>XML_ERROR</b>, 
<b>XML_ERROR_OPENING_FILE</b>, 
<b>XML_ERROR_PARSING_ELEMENT</b>, 
<br/>
&#160;&#160;<b>XML_ERROR_FAILED_TO_READ_ELEMENT_NAME</b>, 
<b>XML_ERROR_READING_ELEMENT_VALUE</b>, 
<b>XML_ERROR_READING_ATTRIBUTES</b>, 
<b>XML_ERROR_PARSING_EMPTY</b>, 
<br/>
&#160;&#160;<b>XML_ERROR_READING_END_TAG</b>, 
<b>XML_ERROR_PARSING_UNKNOWN</b>, 
<b>XML_ERROR_PARSING_COMMENT</b>, 
<b>XML_ERROR_PARSING_DECLARAGON</b>, 
<br/>
&#160;&#160;<b>XML_ERROR_DOCUMENT_EMPTY</b>, 
<b>XML_ERROR_EMBEDDED_NULL</b>, 
<b>XML_ERROR_PARSING_CDATA</b>, 
<b>XML_ERROR_DOCUMENT_TOP_ONLY</b>, 
<br/>
&#160;&#160;<b>XML_ERROR_STRING_COUNT</b>
<br/>
 }</td></tr>
<tr class="separator:a6bef797037763b213c6e429c12d97f6d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:aeb28d8aeec84aad3ce290c6cc3a5ec06"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classduye_1_1_xml_base.html#aeb28d8aeec84aad3ce290c6cc3a5ec06">print</a> (FILE *cfile, int depth) const =0</td></tr>
<tr class="memdesc:aeb28d8aeec84aad3ce290c6cc3a5ec06"><td class="mdescLeft">&#160;</td><td class="mdescRight">All GnyXml classes can print themselves to a filestream or the string class (GXmlString in non-STL mode, std::string in STL mode.) Either or both cfile and str can be null.  <a href="#aeb28d8aeec84aad3ce290c6cc3a5ec06"></a><br/></td></tr>
<tr class="separator:aeb28d8aeec84aad3ce290c6cc3a5ec06"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3e3b595a200a6623630501244c6638e1"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3e3b595a200a6623630501244c6638e1"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><b>xmlToStr</b> (std::string &amp;outXml, int depth) const =0</td></tr>
<tr class="separator:a3e3b595a200a6623630501244c6638e1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abd456d36d5f4362bfb8405e4f9fa8334"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classduye_1_1_xml_base.html#abd456d36d5f4362bfb8405e4f9fa8334">row</a> () const </td></tr>
<tr class="separator:abd456d36d5f4362bfb8405e4f9fa8334"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2fe47c66f1c19b535d7a935e906654c0"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2fe47c66f1c19b535d7a935e906654c0"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classduye_1_1_xml_base.html#a2fe47c66f1c19b535d7a935e906654c0">column</a> () const </td></tr>
<tr class="memdesc:a2fe47c66f1c19b535d7a935e906654c0"><td class="mdescLeft">&#160;</td><td class="mdescRight">See Row() <br/></td></tr>
<tr class="separator:a2fe47c66f1c19b535d7a935e906654c0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1650d1d2f5b74d58441a1f44994fd3cb"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1650d1d2f5b74d58441a1f44994fd3cb"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classduye_1_1_xml_base.html#a1650d1d2f5b74d58441a1f44994fd3cb">setUserData</a> (void *user)</td></tr>
<tr class="memdesc:a1650d1d2f5b74d58441a1f44994fd3cb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set a pointer to arbitrary user data. <br/></td></tr>
<tr class="separator:a1650d1d2f5b74d58441a1f44994fd3cb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae1414fc996e956dd296b77cea25fc959"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae1414fc996e956dd296b77cea25fc959"></a>
void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classduye_1_1_xml_base.html#ae1414fc996e956dd296b77cea25fc959">getUserData</a> ()</td></tr>
<tr class="memdesc:ae1414fc996e956dd296b77cea25fc959"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get a pointer to arbitrary user data. <br/></td></tr>
<tr class="separator:ae1414fc996e956dd296b77cea25fc959"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0fa2e4be3e635011c3aea94c2a9bbd10"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0fa2e4be3e635011c3aea94c2a9bbd10"></a>
const void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classduye_1_1_xml_base.html#a0fa2e4be3e635011c3aea94c2a9bbd10">getUserData</a> () const </td></tr>
<tr class="memdesc:a0fa2e4be3e635011c3aea94c2a9bbd10"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get a pointer to arbitrary user data. <br/></td></tr>
<tr class="separator:a0fa2e4be3e635011c3aea94c2a9bbd10"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaba8e1cbc76fd361198f4d42996d1c7b"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aaba8e1cbc76fd361198f4d42996d1c7b"></a>
virtual const char *&#160;</td><td class="memItemRight" valign="bottom"><b>parse</b> (const char *p, XmlParsingData *data, XmlEncoding encoding)=0</td></tr>
<tr class="separator:aaba8e1cbc76fd361198f4d42996d1c7b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a2f278b32e215015c37f067c37cbf7b8e"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2f278b32e215015c37f067c37cbf7b8e"></a>
static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classduye_1_1_xml_base.html#a2f278b32e215015c37f067c37cbf7b8e">setCondenseWhiteSpace</a> (bool condense)</td></tr>
<tr class="memdesc:a2f278b32e215015c37f067c37cbf7b8e"><td class="mdescLeft">&#160;</td><td class="mdescRight">The world does not agree on whether white space should be kept or not. In order to make everyone happy, these global, static functions are provided to set whether or not GnyXml will condense all white space into a single space or not. The default is to condense. Note changing this value is not thread safe. <br/></td></tr>
<tr class="separator:a2f278b32e215015c37f067c37cbf7b8e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab58f4134b1a9f5ffca01c7ba6ef7fde3"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab58f4134b1a9f5ffca01c7ba6ef7fde3"></a>
static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classduye_1_1_xml_base.html#ab58f4134b1a9f5ffca01c7ba6ef7fde3">isWhiteSpaceCondensed</a> ()</td></tr>
<tr class="memdesc:ab58f4134b1a9f5ffca01c7ba6ef7fde3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the current white space setting. <br/></td></tr>
<tr class="separator:ab58f4134b1a9f5ffca01c7ba6ef7fde3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7324491537ebb8bf1350d6b728ebbe77"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7324491537ebb8bf1350d6b728ebbe77"></a>
static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classduye_1_1_xml_base.html#a7324491537ebb8bf1350d6b728ebbe77">encodeString</a> (const std::string &amp;str, std::string *out)</td></tr>
<tr class="memdesc:a7324491537ebb8bf1350d6b728ebbe77"><td class="mdescLeft">&#160;</td><td class="mdescRight">Expands entities in a string. Note this should not contian the tag's '&lt;', '&gt;', etc, or they will be transformed into entities! <br/></td></tr>
<tr class="separator:a7324491537ebb8bf1350d6b728ebbe77"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-attribs"></a>
Static Public Attributes</h2></td></tr>
<tr class="memitem:a36568795fbf40e1762415fc9046a341b"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a36568795fbf40e1762415fc9046a341b"></a>
static const int&#160;</td><td class="memItemRight" valign="bottom"><b>m_utf8ByteTable</b> [256]</td></tr>
<tr class="separator:a36568795fbf40e1762415fc9046a341b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-static-methods"></a>
Static Protected Member Functions</h2></td></tr>
<tr class="memitem:a1f18bba2c1231643cf32ea64cc28a4d3"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1f18bba2c1231643cf32ea64cc28a4d3"></a>
static const char *&#160;</td><td class="memItemRight" valign="bottom"><b>skipWhiteSpace</b> (const char *, XmlEncoding encoding)</td></tr>
<tr class="separator:a1f18bba2c1231643cf32ea64cc28a4d3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af7daf7b3d7cf1fd84947cc34a515a022"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af7daf7b3d7cf1fd84947cc34a515a022"></a>
static bool&#160;</td><td class="memItemRight" valign="bottom"><b>isWhiteSpace</b> (char c)</td></tr>
<tr class="separator:af7daf7b3d7cf1fd84947cc34a515a022"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac979b9de5faf98bed740d76ee413a2ff"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac979b9de5faf98bed740d76ee413a2ff"></a>
static bool&#160;</td><td class="memItemRight" valign="bottom"><b>isWhiteSpace</b> (int c)</td></tr>
<tr class="separator:ac979b9de5faf98bed740d76ee413a2ff"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6277cd70ad00dc1305de4315863baa13"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6277cd70ad00dc1305de4315863baa13"></a>
static bool&#160;</td><td class="memItemRight" valign="bottom"><b>streamWhiteSpace</b> (std::istream *in, std::string *tag)</td></tr>
<tr class="separator:a6277cd70ad00dc1305de4315863baa13"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aefc31a6c24cb50fceaf696046bce811e"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aefc31a6c24cb50fceaf696046bce811e"></a>
static bool&#160;</td><td class="memItemRight" valign="bottom"><b>streamTo</b> (std::istream *in, int character, std::string *tag)</td></tr>
<tr class="separator:aefc31a6c24cb50fceaf696046bce811e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5ebf61d90446334388e399c00aa56b68"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5ebf61d90446334388e399c00aa56b68"></a>
static const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classduye_1_1_xml_base.html#a5ebf61d90446334388e399c00aa56b68">readName</a> (const char *p, std::string *name, XmlEncoding encoding)</td></tr>
<tr class="memdesc:a5ebf61d90446334388e399c00aa56b68"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reads an XML name into the string provided. Returns a pointer just past the last character of the name, or 0 if the function has an error. <br/></td></tr>
<tr class="separator:a5ebf61d90446334388e399c00aa56b68"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6c6920f167a01923f80d1a36a63cbd88"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6c6920f167a01923f80d1a36a63cbd88"></a>
static const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classduye_1_1_xml_base.html#a6c6920f167a01923f80d1a36a63cbd88">readText</a> (const char *in, std::string *text, bool ignoreWhiteSpace, const char *endTag, bool ignoreCase, XmlEncoding encoding)</td></tr>
<tr class="memdesc:a6c6920f167a01923f80d1a36a63cbd88"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reads text. Returns a pointer past the given end tag. Wickedly complex options, but it keeps the (sensitive) code in one place. <br/></td></tr>
<tr class="separator:a6c6920f167a01923f80d1a36a63cbd88"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a39e00e714b5bb950d2578609bf024dc7"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a39e00e714b5bb950d2578609bf024dc7"></a>
static const char *&#160;</td><td class="memItemRight" valign="bottom"><b>getEntity</b> (const char *in, char *value, int *length, XmlEncoding encoding)</td></tr>
<tr class="separator:a39e00e714b5bb950d2578609bf024dc7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0f9b7daa58e6a9142c5c96f4243ac4d8"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0f9b7daa58e6a9142c5c96f4243ac4d8"></a>
static const char *&#160;</td><td class="memItemRight" valign="bottom"><b>getChar</b> (const char *p, char *value, int *length, XmlEncoding encoding)</td></tr>
<tr class="separator:a0f9b7daa58e6a9142c5c96f4243ac4d8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a112c9a866ce15d43833c3f7834b01cb8"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a112c9a866ce15d43833c3f7834b01cb8"></a>
static bool&#160;</td><td class="memItemRight" valign="bottom"><b>stringEqual</b> (const char *p, const char *endTag, bool ignoreCase, XmlEncoding encoding)</td></tr>
<tr class="separator:a112c9a866ce15d43833c3f7834b01cb8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9fe6a26a79bc555560f5ab26a5c7e2c1"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9fe6a26a79bc555560f5ab26a5c7e2c1"></a>
static int&#160;</td><td class="memItemRight" valign="bottom"><b>isAlpha</b> (unsigned char anyByte, XmlEncoding encoding)</td></tr>
<tr class="separator:a9fe6a26a79bc555560f5ab26a5c7e2c1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a11a4347c5eec52d4b95eae1a7522e171"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a11a4347c5eec52d4b95eae1a7522e171"></a>
static int&#160;</td><td class="memItemRight" valign="bottom"><b>isAlphaNum</b> (unsigned char anyByte, XmlEncoding encoding)</td></tr>
<tr class="separator:a11a4347c5eec52d4b95eae1a7522e171"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ada2d4f2b852941873b04195b167a4bbe"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ada2d4f2b852941873b04195b167a4bbe"></a>
static int&#160;</td><td class="memItemRight" valign="bottom"><b>toLower</b> (int v, XmlEncoding encoding)</td></tr>
<tr class="separator:ada2d4f2b852941873b04195b167a4bbe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0581f285b4e0d29a430abf78dfe5f774"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0581f285b4e0d29a430abf78dfe5f774"></a>
static void&#160;</td><td class="memItemRight" valign="bottom"><b>convertUTF32ToUTF8</b> (unsigned long input, char *output, int *length)</td></tr>
<tr class="separator:a0581f285b4e0d29a430abf78dfe5f774"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr class="memitem:a290d275fee62c93df204dfa041b7c657"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a290d275fee62c93df204dfa041b7c657"></a>
<a class="el" href="classduye_1_1_xml_cursor.html">XmlCursor</a>&#160;</td><td class="memItemRight" valign="bottom"><b>m_location</b></td></tr>
<tr class="separator:a290d275fee62c93df204dfa041b7c657"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aba0ab14e19dc483be84e5e11c65150b8"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aba0ab14e19dc483be84e5e11c65150b8"></a>
void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classduye_1_1_xml_base.html#aba0ab14e19dc483be84e5e11c65150b8">m_userData</a></td></tr>
<tr class="memdesc:aba0ab14e19dc483be84e5e11c65150b8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Field containing a generic user pointer. <br/></td></tr>
<tr class="separator:aba0ab14e19dc483be84e5e11c65150b8"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-static-attribs"></a>
Static Protected Attributes</h2></td></tr>
<tr class="memitem:a1592ff499a7e4cbc364e2e5a7bc809e0"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1592ff499a7e4cbc364e2e5a7bc809e0"></a>
static const char *&#160;</td><td class="memItemRight" valign="bottom"><b>m_errorString</b> [XML_ERROR_STRING_COUNT]</td></tr>
<tr class="separator:a1592ff499a7e4cbc364e2e5a7bc809e0"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="friends"></a>
Friends</h2></td></tr>
<tr class="memitem:a88b009b38305b720f82e3bfc4695b70f"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a88b009b38305b720f82e3bfc4695b70f"></a>
class&#160;</td><td class="memItemRight" valign="bottom"><b>XmlNode</b></td></tr>
<tr class="separator:a88b009b38305b720f82e3bfc4695b70f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abedc393b34ee7d5d9558e7736cc0f032"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abedc393b34ee7d5d9558e7736cc0f032"></a>
class&#160;</td><td class="memItemRight" valign="bottom"><b>XmlElement</b></td></tr>
<tr class="separator:abedc393b34ee7d5d9558e7736cc0f032"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acb499a895285d52060e9d6f2d937d383"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="acb499a895285d52060e9d6f2d937d383"></a>
class&#160;</td><td class="memItemRight" valign="bottom"><b>XmlDocument</b></td></tr>
<tr class="separator:acb499a895285d52060e9d6f2d937d383"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p><a class="el" href="classduye_1_1_xml_base.html" title="XmlBase is a base class for every class in GnyXml. It does little except to establish that GnyXml cla...">XmlBase</a> is a base class for every class in GnyXml. It does little except to establish that GnyXml classes can be printed and provide some utility functions. </p>
<p>In XML, the document and elements can contain other elements and other types of nodes.</p>
<pre class="fragment">* A Document can contain:   Element (container or leaf)
* Comment (leaf)
* Unknown (leaf)
* Declaration( leaf )
* 
* An Element can contain:   Element (container or leaf)
* Text  (leaf)
* Attributes (not on tree)
* Comment (leaf)
* Unknown (leaf)
* 
* A Decleration contains: Attributes (not on tree)
* </pre> </div><h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="aeb28d8aeec84aad3ce290c6cc3a5ec06"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void duye::XmlBase::print </td>
          <td>(</td>
          <td class="paramtype">FILE *&#160;</td>
          <td class="paramname"><em>cfile</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>depth</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>All GnyXml classes can print themselves to a filestream or the string class (GXmlString in non-STL mode, std::string in STL mode.) Either or both cfile and str can be null. </p>
<p>This is a formatted print, and will insert tabs and newlines.</p>
<p>(For an unformatted stream, use the &lt;&lt; operator.) </p>

<p>Implemented in <a class="el" href="classduye_1_1_xml_document.html#a6e47f2b7dc26ead234b5d6672fdebbf1">duye::XmlDocument</a>, <a class="el" href="classduye_1_1_xml_unknown.html#a6f6a15c642fdf66a94b0f77afe27a599">duye::XmlUnknown</a>, <a class="el" href="classduye_1_1_xml_declaration.html#a3e3a634a7c060253d6f38a28213639b9">duye::XmlDeclaration</a>, <a class="el" href="classduye_1_1_xml_text.html#a5354f8e3a2b2169125ee308fced53a20">duye::XmlText</a>, <a class="el" href="classduye_1_1_xml_comment.html#ab761b076aa5e712eb2e22dd3f79ab8c9">duye::XmlComment</a>, <a class="el" href="classduye_1_1_xml_element.html#a046112fa85b80dd1c09546dda19afe42">duye::XmlElement</a>, and <a class="el" href="classduye_1_1_xml_attribute.html#a76fde61930196859780ba4e63c4f57ef">duye::XmlAttribute</a>.</p>

</div>
</div>
<a class="anchor" id="abd456d36d5f4362bfb8405e4f9fa8334"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int duye::XmlBase::row </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Return the position, in the original source file, of this node or attribute. The row and column are 1-based. (That is the first row and first column is 1,1). If the returns values are 0 or less, then the parser does not have a row and column value.</p>
<p>Generally, the row and column value will be set when the GXmlDocument::Load(), GXmlDocument::LoadFile(), or any XmlNode::Parse() is called. It will NOT be set when the DOM was created from operator&gt;&gt;.</p>
<p>The values reflect the initial load. Once the DOM is modified programmatically (by adding or changing nodes and attributes) the new values will NOT update to reflect changes in the document.</p>
<p>There is a minor performance cost to computing the row and column. Computation can be disabled if GXmlDocument::SetTabSize() is called with 0 as the value.</p>
<dl class="section see"><dt>See Also</dt><dd>GXmlDocument::SetTabSize() </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>Z:/duye/src/duyebase/utils/<a class="el" href="duye__xml_8h_source.html">duye_xml.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Feb 27 2017 15:19:21 for Duye SDK User Wizard by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.3
</small></address>
</body>
</html>
